﻿using ConfExpert.Forms.Base;
using DevTeam;

using System;
namespace ConfExpert.Forms.Depo.Cikis
{
    public partial class Iadeler : XForm
    {
        public Iadeler()
        {
            InitializeComponent();
        }

        private void Iadeler_Load(object sender, EventArgs e)
        {
            gridView1.Init("GetGelenIadeEdilen", txtPONr.EditValue.ToStr());
            gridView1.FormatAsDate("GelisTarihi");
            gridView1.FormatAsNumber(1, "QtyGelen", "QtyIade", "QtyUretimeCikilan", "QtyKalan");
            gridView1.AddSummary("QtyGelen", "QtyIade", "QtyUretimeCikilan", "QtyKalan");
            btnRefresh.ItemClick += btnRefresh_ItemClick;
        }

        void btnRefresh_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            gridView1.RefreshDataSource("GetGelenIadeEdilen", txtPONr.EditValue.ToStr());
            gridView1.BestFitColumns();
        }
    }
}
